<template>
	<div>
		
		<van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
			<van-swipe-item v-for="(item,index) in details">
				<img :src="item" width="100%">
			</van-swipe-item>
		</van-swipe>
		
		<div class="deta-content">
			<div>{{details2.name}}</div>
			<div style="display: flex;justify-content: space-between;">
				<div>低价￥{{details2.minScore}} 原价￥{{details2.minPrice}}</div>
				<div>库存{{details2.minScore}}</div>
			</div>
		</div>
		
		<div v-html="details3" class="content"></div>
		
	</div>
</template>

<script>
	export default{
		data(){
			return{
				details:[],
				details2:[],
				details3:[]
			}
		},
		mounted() {
			let id = this.$route.query.id
			this.$netClient.details({
				params:{
					id
				}
			}).then(res=>{
				window.console.log(res.data.data.basicInfo)
				this.details = res.data.data.pics2
				this.details2 = res.data.data.basicInfo
				this.details3 = res.data.data.content
			}).catch(err=>{
				window.console.log(err)
			})
		}
	}
</script>

<style scoped="scoped">
	.deta-content{
		width: 100%;
		height: 80px;
		background-color: white;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		padding: 5px 10px;
		box-sizing: border-box;
	}
	.content >>> img{
		width: 100% !important;
		height: 100% !important;
	}
</style>
